#include"process.h"

void Process()
{
    int cnt=0;
    char bar[num];
    memset(bar,'\0',sizeof(bar));
    const char* lable="|\\-/";
    while(cnt<=100)
    {
        printf("[%-100s][%-2d%%][%c]\r",bar,cnt,lable[cnt%4]);
        fflush(stdout);
        bar[cnt++]='$';
        usleep(50000);
    }
    printf("\n");
}
